﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.WebPages.OAuth;
using Tangerine.Web.Core.Models;
using Tangerine.Web.Core.CustomAuthClients;

namespace Tangerine.Web.Core
{
    public static class AuthConfig
    {
        public static void RegisterAuth()
        {
            // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter,
            // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166

            //OAuthWebSecurity.RegisterMicrosoftClient(
            //    clientId: "",
            //    clientSecret: "");

            //OAuthWebSecurity.RegisterTwitterClient(
            //    consumerKey: "",
            //    consumerSecret: "");

            //OAuthWebSecurity.RegisterFacebookClient(
            //    appId: "510179165750131",
            //    appSecret: "bbcb0f7523bbb05b0f79c695dd9992fa");

            OAuthWebSecurity.RegisterClient(new FacebookAuthClient("510179165750131", "bbcb0f7523bbb05b0f79c695dd9992fa"), "FaceBook", null);


            //OAuthWebSecurity.RegisterLinkedInClient(
            //    consumerKey: "75vn29fb6q32q7",
            //    consumerSecret: "kcV24bdtRDGroPOi", displayName:"LinkedIn");

            OAuthWebSecurity.RegisterClient(new LinkedInCustomClient("75vn29fb6q32q7", "kcV24bdtRDGroPOi"), "LinkedIn", null);

            //API Key:
            //75vn29fb6q32q7

            //Secret Key:
            //kcV24bdtRDGroPOi

            //OAuth User Token:
            //5a323b4d-f090-41d2-92b7-b41b609f0da7

            //OAuth User Secret:
            //8e5b9c9c-759f-4029-b2cc-bb09857b2698

            OAuthWebSecurity.RegisterGoogleClient();

        }
    }
}
